package com.wpml.cloud.classroom.config;

import com.wpml.cloud.classroom.netty.NettyServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Date 2021-05-17
 * @Author wangpei
 **/
@Configuration
public class NettyConfig {

    @Bean(value = "nettyServer", destroyMethod = "stop")
    public NettyServer nettyServer() {
        return new NettyServer();
    }
}
